import PyPDF2
pdfWaterFileObj = open('SaaS创业路线图.pdf', 'rb')
pdfWaterReader = PyPDF2.PdfFileReader(pdfWaterFileObj)
pdfWaterPage = pdfWaterReader.getPage(0)
pdfContentFileObj = open('Python练习集100题.pdf', 'rb')
pdfContentReader = PyPDF2.PdfFileReader(pdfContentFileObj)
pdfContentPage = pdfContentReader.getPage(0)

pdfContentPage.mergePage(pdfWaterPage)

pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter.addPage(pdfContentPage)

resultPdfFile = open('WaterCover.pdf', 'wb')
pdfWriter.write(resultPdfFile)
pdfWaterFileObj.close()
pdfContentFileObj.close()
resultPdfFile.close()